window.onload = function() {
    const origin = `${window.location.protocol}//${window.location.hostname}`;
    // const origin = 'https://xxdt.dev.ganguomob.com';
    const context = document.getElementById('context');
    axios.get(`${origin}/api/supplier/setting/${key}`).then(res => {
        if (!res.data.code) {
            context.innerHTML = res.data.data.content;
        } else {
            alert(res.data.message);
        }
    });
}